Add USDT to iocore/net, iocore/cache, http, http2#13344
Open
moonchen wants to merge 1 commit into
Open
Conversation
94f1cb5 to
5e3f303
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands Apache Traffic Server’s USDT/SystemTap instrumentation beyond one-shot lifecycle probes by adding steady-state probes in hot-path data transfer and flow-control code across iocore (net/cache) and the HTTP/HTTP2 proxy layers. These probes are compiled out unless built with -DENABLE_PROBES=ON.
Changes:
- Add USDT probes for HTTP/2 flow-control and frame send/receive events (WINDOW_UPDATE, DATA, RST_STREAM, blocked conditions).
- Add USDT probes for HTTP tunnel and state-machine transfer/background-fill/abort/setup events.
- Add USDT probes for network I/O (socket + TLS read/write), enable/disable/reenable, inactivity timeouts, and cache read-while-writer lifecycle.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/proxy/http2/Http2ConnectionState.cc | Adds HTTP/2 probes for window updates, blocked sends, data frame sends, and RST_STREAM send/receive. |
| src/proxy/http/HttpTunnel.cc | Adds probes for tunnel producer/consumer handlers, chunk decoding, flow-control, and consumer attachment. |
| src/proxy/http/HttpSM.cc | Adds probes for transfer setup, background fill start/finish, UA abort, and server setup error. |
| src/iocore/net/UnixNetVConnection.cc | Adds probes for socket read/write, reenable, and do_io_close. |
| src/iocore/net/UnixNet.cc | Adds probe for inactivity timeout events (including default-timeout context). |
| src/iocore/net/SSLNetVConnection.cc | Adds probes for TLS read/write paths. |
| src/iocore/net/P_UnixNet.h | Adds probes for read/write disable transitions. |
| src/iocore/cache/CacheWrite.cc | Adds probes for read-while-writer writer produce/close events. |
| src/iocore/cache/CacheRead.cc | Adds probes for read-while-writer reader attach/starvation events. |
Add USDT probes to the following: - iocore/net: socket read/write, read/write disable, reenable, do_io_close, inactivity timeout, TLS read - iocore/cache: read-while-writer attach, produce, starve, writer close - proxy/http: tunnel producer/consumer/flow-control, add consumer, chunk decode, UA abort, transfer setup, background fill - proxy/http2: send-window/write-buffer block, data frame, window update, RST_STREAM sent/received The existing probes only mark one-shot lifecycle milestones; these cover the steady-state body-transfer and flow-control phases. They compile to no-ops unless built with -DENABLE_PROBES=ON.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add USDT probes to the following:
The existing probes only mark one-shot lifecycle milestones; these cover the steady-state body-transfer and flow-control phases. They compile to no-ops unless built with
-DENABLE_PROBES=ON.